import inspect
import os


class Test(object):
    """Test Class"""

    def test(self):
        self.func = lambda x:x


class Testone(Test):
    pass


if __name__ == "__main__":
    print(inspect.ismodule(os))
    print(inspect.isclass(Test))
    print(inspect.getdoc(Test))

    print(inspect.getsourcefile(Test))
    print(inspect.getsourcelines(Test))
    print(inspect.getsource(Test))

    for name, value in inspect.getmembers(Test, callable):
        print("    Callable:", name)

    for name, value in inspect.getmembers(Test(), callable):
        print("   Instance Callable:", name)
